import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class pendataan extends JFrame
{
		JLabel lbljudul = new JLabel("KOLOM ISI DAFTAR PENGGUNA");
		JLabel lblid = new JLabel("Nomor ID");
		JLabel lblnm = new JLabel("Nama ");
		JLabel lblkerja = new JLabel("Status");
		JTextField txtid = new JTextField(8);
		JTextField txtnm = new JTextField(8);
		JTextField txtkerja = new JTextField(8);
		JButton tblsimpan = new JButton("Tambah");
		JButton tblubah = new JButton("Ubah");
		JButton tblhapus = new JButton("Hapus");
		JButton cmd4 = new JButton("Tutup");
		JButton cmd5 = new JButton("Memulai program ->");
		JTable table = new JTable();
		public pendataan()
		{
		super("Pendataan"); 
			setSize(646,508);
			setLocationRelativeTo(null);
			setResizable(false);
			setDefaultCloseOperation(EXIT_ON_CLOSE);		
			komponenVisual();
			setVisible(true); 
			//aksi();
		}
		void komponenVisual()
			{
			getContentPane().setLayout(null);
			getContentPane().add(lbljudul);
			lbljudul.setBounds(230,25,300,20);
			getContentPane().add(lblid);
			lblid.setBounds(210,65,100,20);
			getContentPane().add(txtid);
			txtid.setBounds(320,65,100,20);
			getContentPane().add(lblnm);
			lblnm.setBounds(227,95,100,20);
			getContentPane().add(txtnm);
			txtnm.setBounds(320,95,200,20);
			getContentPane().add(lblkerja);
			lblkerja.setBounds(223,125,100,20);
			getContentPane().add(txtkerja);
			txtkerja.setBounds(320,125,140,20);
			getContentPane().add(table);
			table.setBounds(110,210,418,200);
			getContentPane().add(tblsimpan);
			tblsimpan.setBounds(110,165,100,30);
			getContentPane().add(tblubah);
			tblubah.setBounds(215,165,100,30);
			getContentPane().add(tblhapus);
			tblhapus.setBounds(320,165,100,30);
			getContentPane().add(cmd4);
			cmd4.setBounds(425,165,100,30);
			getContentPane().add(cmd5);
			cmd5.setBounds(110,430,418,30);

				//getContentPane().setLayout(new BorderLayout());
				//getContentPane().add(gambar,BorderLayout.CENTER);
				setVisible(true);
			}
	public static void main(String[] args) 
	{
		new pendataan();
	}
}
